<template>
  <div class="school-bk-box" v-if="detail">
    <div class="div">
      <div class="h2">入学必看</div>
      <dl class="list1 flex-bect">
        <dd v-for="item in bkList" :key="item.id" class="item cur" @click="showPup(item.id)"><img :src="item.src" alt="" class="img"><p>{{item.name}}</p></dd>
      </dl>
      <div class="h2">新闻动态</div>
      <div class="list2" v-if="detail.newslist">
        <a v-for="item in detail.newslist" :key="item.id" :href="router.gjNewsDetail+'?id='+item.id" class="item row1">{{item.title}}</a>
      </div>
    </div>
    <a :href="router.test"><img src="./static/image/gj_01_detail/cp-img.png" alt=""></a>
    
    
  </div>
</template>

<script>
let router = getPath(); // 所有路径
// 不支持 import
module.exports = {
  props:{
    detail:null,
  },
  data: function () {
    return {
      router:router,
      bkList:[
        {id:1,name:"学校费用", src:"./static/image/gj_01_detail/bk-ico1.png"},
        {id:2,name:"入学考试", src:"./static/image/gj_01_detail/bk-ico2.png"},
        {id:3,name:"报名流程", src:"./static/image/gj_01_detail/bk-ico3.png"}
      ],
    };
  },
  watch:{
    
  },
  components: {},
  mounted(){
    
  },
  methods:{
    showPup(e){
      this.$emit('show', {status: true, id:e})
    },
  }
};
</script>

<style>

</style>